import React from 'react'

//轮播图列表
export async function apiGetShufflingList(params) {
    return await React.$post('/admin/configCarousel/list', params);
}
export async function apiGetShufflingPage(params) {
    return await React.$post('/admin/configCarousel/page', params);
}
//轮播图新增
export async function apiGetShufflingAdd(params) {
    return await React.$post('/admin/configCarousel/add', params);
}
//APP首页按钮拖拽排序
export async function apiGetShufflingSort(params) {
    return await React.$postJson('/admin/configCarousel/updateBatch/Json', params); 
}
//轮播图修改
export async function apiGetShufflingEdit(params) {
    return await React.$post('/admin/configCarousel/edit', params);
}

//轮播图删除
export async function apiGetShufflingDel(params) {
    return await React.$post('/admin/configCarousel/del', params);
}

//广告位列表
export async function apiGetAdvertisingList(params) {
    return await React.$post('/admin/advertisingSpace/list', params);
}

//广告位修改
export async function apiGetAdvertisingEdit(params) {
    return await React.$post('/admin/advertisingSpace/edit', params);
}

//帮助中心列表
export async function apiGetHelpQuestionList(params) {
    return await React.$post('/admin/helpQuestion/list', params);
}

//帮助中心分类列表
export async function apiGetHelpQuestionClassifyList(params) {
    return await React.$post('/admin/helpQuestionClassify/list', params);
}

//帮助中心分类修改
export async function apiGetHelpQuestionEdit(params) {
    return await React.$post('/admin/helpQuestion/edit', params);
}

//帮助中心分类删除
export async function apiGetHelpQuestionDel(params) {
    return await React.$post('/admin/helpQuestion/del', params);
}

//帮助中心分类新增
export async function apiGetHelpQuestionAdd(params) {
    return await React.$post('/admin/helpQuestion/add', params);
}

//关于我们列表
export async function apiGetAboutUsList(params) {
    return await React.$post('/admin/configAboutUs/list', params);
}

//关于我们修改
export async function apiGetAboutUsEdit(params) {
    return await React.$post('/admin/configAboutUs/edit', params);
}

// 文章配置-新增
export async function apiAboutUsAdd(params) {
  return await React.$post('/admin/configAboutUs/add', params)
}

//用户反馈列表
export async function apiGetFeedBackList(params) {
    return await React.$post('/admin/memberFeedback/page', params);
}

//用户反馈列表
export async function apiGetFeedBackStatusEdit(params) {
    return await React.$post('/admin/memberFeedback/editProcessStatus', params);
}

//平台设置列表
export async function apiGetPlatformSetList(params) {
    return await React.$post('/admin/configPlatformSet/list', params);
}

export async function apiGetConfigPlatformSet(params) {
    return await React.$post('/admin/configPlatformSet/getConfigPlatformSet', params);
}

export async function apiGetPlatformSetEdit(params) {
    return await React.$post('/admin/configPlatformSet/edit', params);
}
//门店轮播图
export async function apiGetBannerList(params) {
    return await React.$post('/admin/bannerInfo/list', params);
}
//门店轮播图-新增
export async function apiGetBannerAdd(params) {
    return await React.$post('/admin/bannerInfo/add', params);
}
//门店轮播图-修改
export async function apiGetBannerEdit(params) {
    return await React.$post('/admin/bannerInfo/edit', params);
}
//门店轮播图-删除
export async function apiGetBannerDel(params) {
    return await React.$post('/admin/bannerInfo/del', params);
}
//问题分类新增
export async function apiHelpClassifyAdd(params) {
    return await React.$post('/admin/helpQuestionClassify/add', params);
}
//问题分类删除
export async function apiHelpClassifyDel(params) {
    return await React.$post('/admin/helpQuestionClassify/del', params);
}
//问题分类修改
export async function apiHelpClassifyEdit(params) {
    return await React.$post('/admin/helpQuestionClassify/edit', params);
}

// 根据位置更新状态
export async function apiUpdateStatusBySite(params) {
    return await React.$postJson('/admin/configCarousel/updateStatusBySite/Json',params)
}
